from aioredis import Redis

from common.config.settings import RedisConfig


def init_redis(redis_config: RedisConfig):
    return Redis(**redis_config.dict())
